#include <iostream>
#include "cash.h"
#include "cashstrategy.h"

CashStrategy::CashStrategy(CashSuper *cash)
{
    std::cout << "CashStrategy" << std::endl;
    cash_ = cash;
}

CashStrategy::~CashStrategy()
{
    std::cout << "~CashStrategy" << std::endl;
}

double CashStrategy::GetCash(double money)
{
    return cash_->GetCash(money);
}


